﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
   public class ReaderManagementBLL
    {
        ReaderManagementDAL reader = new ReaderManagementDAL();
        /// <summary>
        /// 读者信息
        /// </summary>
        /// <returns></returns>
        public DataTable ReaderShow()
        {
            return reader.ReaderShowDAL();
        }

        /// <summary>
        /// 删除读者
        /// </summary>
        /// <returns></returns>
        public bool DatateReader(string readerId)
        {
            return reader.DatateReaderDAL(readerId) > 0 ? true : false ;
        }

        /// <summary>
        /// 修改读者
        /// </summary>
        /// <param name="readerda"></param>
        /// <returns></returns>

        public bool UpdateReader(ReaderInfo readerda)
        {
            return reader.UpdateReaderDAL(readerda) >0?true:false;
        }

        /// <summary>
        /// 查询读者信息
        /// </summary>
        /// <param name="readerda"></param>
        /// <returns></returns>
        public DataTable FindByReader(string readerda)
        {
            return reader.FindByReaderDAL(readerda);
        }
    }
}
